package com.myThreadPool;


import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @Author weijingchen
 * @Date 2025/6/23 20:09
 * @Version 1.0.0
 */
public class MyThreadPool2 {
    public static void main(String[] args) {
        ExecutorService pool = Executors.newFixedThreadPool(3);
        pool.submit(new MyRunnable());
        pool.submit(new MyRunnable());
        pool.submit(new MyRunnable());
        pool.submit(new MyRunnable());
        pool.submit(new MyRunnable());
        pool.submit(new MyRunnable());

    }
}
